<template>
    <div class="box1">
       <div class="menu3">
      <img src="@/assets/images/组 2560.png">  <span style="margin-top:20px"><b>任务管理</b></span>
    
    </div>
        <el-button style="float:left; margin-top:33px;margin-left:20px;" @click="dialogVisible = true" type="primary" size="mini" plain>发布任务</el-button>
         <!-- 头部 -->
         <el-dialog
  title="提示"
  :visible.sync="dialogVisible"
  width="30%"
  :before-close="handleClose">
  <span>发布任务前需要进行企业认证，充值完成后才能发布任务！</span>
  <span slot="footer" class="dialog-footer">
    <el-button @click="gofb">取 消</el-button>
    <el-button type="primary" @click="gorz">去认证</el-button>
  </span>
</el-dialog>

    <div class="menu">
      <el-menu
        
        class="el-menu-demo"
        mode="horizontal"
      
      >
        <el-menu-item id="el-menu" index="1">当前任务</el-menu-item>
        <el-menu-item id="el-menu" index="2">历史任务</el-menu-item>
      </el-menu>
      <div class="line"></div>
    </div>
    <!-- +++++++++++++++++++++++++++++++++++表格+++++++++++++++++++++++++++++++++++++++++++++++++++= -->
    <div class="table">
      <el-table :data="tableData"  class="tableBox" style="width: 98%">
        <el-table-column prop="numbering" label="任务编号" width="200">
        </el-table-column>
        <el-table-column prop="name" label="任务名称" width="210">
        </el-table-column>
        <el-table-column prop="reward" label="任务奖励" width="200">
        </el-table-column>
        <el-table-column prop="level" label="任务级别" width="195">
           <!-- <el-button @click="gosh" type="primary" size="mini" plain>普通</el-button> -->
           <el-link  type="success">普通</el-link>
        </el-table-column>
        <el-table-column prop="time" label="任务时限" width="195">
        </el-table-column>
        <el-table-column prop="date" label="任务截止时间(任务提交时间)">
        </el-table-column>
      </el-table>
      <!-- +++++++++++++++++++分页+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= -->
    <div class="pag2">
      <div class="block">
        <!-- <span class="demonstration">直接前往</span> -->
        <el-pagination
          background
        
          layout="prev, pager, next, jumper"
          :total="1000"
        >
        </el-pagination>
      </div>
    </div>
    </div>
    
    </div>
</template>

<script>
export default {
  methods:{
     handleClose(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      },
    gorz(){
       this.$router.push('/qyrz');
    },
    gofb(){
      this.$router.push('/fbrw');
    }
  },
  data() {
    return {
      dialogVisible: false,
      tableData: [
        {
          numbering: "0123456789",
          name: "任务名称",
          reward: "1,000",
          level: "普通",
          time: "3天",
          date: "2016-05-01",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "一般",
          time: "",
          date: "",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "复杂",
          time: "",
          date: "",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "困难",
          time: "",
          date: "",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "",
          time: "",
          date: "",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "",
          time: "",
          date: "",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "",
          time: "",
          date: "",
        },
        {
          numbering: "",
          name: "",
          reward: "",
          level: "",
          time: "",
          date: "",
        },
      ],
    };
  },
};
</script>

<style lang="scss" >
.tableBox {
  th {
    padding: 0 !important;
    height: 40px;
    line-height: 40px;
  }
  td {
    padding: 0 !important;
    height: 40px;
    line-height: 40px;
  }
}
.box1 {
  width: 1250px;
  height: 660px;
  background-color: white;
  /* padding-top: 50px; */
}

#el-menu {
  background-color: white;
}

.menu {
  /* background: white; */
  padding-top: 5%;
  margin-left: 2%;
}
.menu3 img {
  /* background: white; */
//   padding-top: 5%;
   width: 30px;
    height: 30px;
    display: inline-block;
    // float: left;
    margin-top: 10px;
    margin-left: 2%;

}
.menu3 span{
  position: absolute;
  top: 72px;
  left: 292px;
  // padding-top: 20px;
 
  // margin-left: 10px;
  }
.head {
  float: left;
}
.table {
  padding-top: 10px;
  margin-left: 2%;
}
.pag2 {
  /* margin-top: 4%; */
  /* margin-left: 25%; */
  position: absolute;
  top: 680px;
  left: 531px;
}
</style>